package com.lottery.ruok.lottrey.chat.utils;

import com.lottery.ruok.lottrey.userInfo.UserInfo;

import utils.StringUtils;

public class ChatUtils {
    /**
     * 判断是否是自己
     *
     * @param userId
     * @return
     */
    public static boolean isMySelf(String chatUserName) {
        if (StringUtils.isEmpty(UserInfo.getToken())) {
            return false;
        }
        String username = UserInfo.getNickname();
        if (!StringUtils.isEmpty(username)) {
            return username.equals(chatUserName);
        }
        return false;
    }
}
